<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 14px}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
-->
</style>
<p>&nbsp;</p>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#97916D">
  <tr>
    <td height="30" colspan="3" bgcolor="#808080"><span class="STYLE1"> &nbsp; <img src="images/add.gif" width="10" height="10" />
          <html:link page="/role.do?method=add"><font color="white">添加新角色</font></html:link>
    </span></td>
  </tr>
<logic:empty name="roles">
			尚未定义任何角色。
  </logic:empty>
  <logic:notEmpty name="roles">
    <tr>
      <td width="33%" height="30" align="center" bgcolor="#F0FBF9">角色名</td>
      <td width="47%" align="center" bgcolor="#F0FBF9">描述信息</td>
      <td width="20%" align="center" bgcolor="#F0FBF9"><span class="STYLE1">管&nbsp; 理</span></td>
    </tr>
    <logic:iterate id="role" name="roles">
      <tr>
        <td height="30" align="center" bgcolor="#F8F8F8">&nbsp;<bean:write name="role" property="name" /></td>
        <td align="center" bgcolor="#F8F8F8">&nbsp;<bean:write name="role" property="description" /></td>
        <td align="center" bgcolor="#F8F8F8">&nbsp;
            <html:link page="/role.do?method=edit" paramId="id"
					paramName="role" paramProperty="id">修改</html:link>
          &nbsp;&nbsp;
            <html:link page="/role.do?method=delete" paramId="id"
					paramName="role" paramProperty="id">删除</html:link>        </td>
      </tr>
    </logic:iterate>
  </logic:notEmpty>
</table>
